class UsernameConverters:
    """
    自定义路由转换器
    """
    regex = '[a-zA-Z0-9_-]{5,20}'

    def to_python(self, value):
        return str(value)